const Mock = require('mockjs')
const fs = require('fs')
const data = Mock.mock({
	"banners|5": [{
		"id": '@id',
		"menus|12": [{
			"id": "@id",
			"images": "@image(50x50, @color, menus)",
			"title": "@ctitle(2)"
		}]
	}],
	"scrollXList|10": [{
		"title": "@ctitle",
		"image": '@image(200x80, @color, image)',
		"id":'@id'
	}],
	"list|10": [{
		"title": "@ctitle",
		"image": '@image(120x80, @color, image)',
		"id":'@id'
	}]
})
fs.writeFileSync('data.json', JSON.stringify(data))